package com.gxa.modules.pc.fee.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.modules.model.entity.fee.OutpatientRechargeRecords;
import com.gxa.modules.pc.fee.dto.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 门诊充值记录表 Mapper 接口
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 05:31:54
 */
@Mapper
public interface OutpatientRechargeRecordsMapper extends BaseMapper<OutpatientRechargeRecords> {

    //门诊充值记录信息
    List<OutPatientRechargeDto> queryAll(OutPatientSearchDto outPatientSearchDto);
//总条数
    Integer count(OutPatientSearchDto outPatientSearchDto);
    //根据订单号查询就诊人的信息
    List<OutPatientRechargePatientDto> queryByOrderId(@Param("orderId") String orderId);
    //根据订单号查询就订单信息
    List<OutPatientRechargeOrderDto> queryOrderByOrderId(@Param("orderId") String orderId);

    //修改备注
    void updateRemarks(@Param("orderId") String orderId, @Param("orderNotes") String orderNotes);
}
